{"ast":null,"code":"import React, { useContext } from 'react';\nimport classNames from 'classnames';\nimport { ConfigContext } from '../config-provider';\nimport useStyle from './style';\nimport useMessage from '../message/useMessage';\nimport useNotification from '../notification/useNotification';\nimport useModal from '../modal/useModal';\nimport AppContext from './context';\nconst useApp = () => React.useContext(AppContext);\nconst App = props => {\n  const {\n    prefixCls: customizePrefixCls,\n    children,\n    className\n  } = props;\n  const {\n    getPrefixCls\n  } = useContext(ConfigContext);\n  const prefixCls = getPrefixCls('app', customizePrefixCls);\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  const customClassName = classNames(hashId, prefixCls, className);\n  const [messageApi, messageContextHolder] = useMessage();\n  const [notificationApi, notificationContextHolder] = useNotification();\n  const [ModalApi, ModalContextHolder] = useModal();\n  const memoizedContextValue = React.useMemo(() => ({\n    message: messageApi,\n    notification: notificationApi,\n    modal: ModalApi\n  }), [messageApi, notificationApi, ModalApi]);\n  return wrapSSR( /*#__PURE__*/React.createElement(AppContext.Provider, {\n    value: memoizedContextValue\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: customClassName\n  }, ModalContextHolder, messageContextHolder, notificationContextHolder, children)));\n};\nif (process.env.NODE_ENV !== 'production') {\n  App.displayName = 'App';\n}\nApp.useApp = useApp;\nexport default App;","map":{"version":3,"names":["React","useContext","classNames","ConfigContext","useStyle","useMessage","useNotification","useModal","AppContext","useApp","App","props","prefixCls","customizePrefixCls","children","className","getPrefixCls","wrapSSR","hashId","customClassName","messageApi","messageContextHolder","notificationApi","notificationContextHolder","ModalApi","ModalContextHolder","memoizedContextValue","useMemo","message","notification","modal","createElement","Provider","value","process","env","NODE_ENV","displayName"],"sources":["/data/messenger.client/node_modules/antd/es/app/index.js"],"sourcesContent":["import React, { useContext } from 'react';\nimport classNames from 'classnames';\nimport { ConfigContext } from '../config-provider';\nimport useStyle from './style';\nimport useMessage from '../message/useMessage';\nimport useNotification from '../notification/useNotification';\nimport useModal from '../modal/useModal';\nimport AppContext from './context';\nconst useApp = () => React.useContext(AppContext);\nconst App = props => {\n  const {\n    prefixCls: customizePrefixCls,\n    children,\n    className\n  } = props;\n  const {\n    getPrefixCls\n  } = useContext(ConfigContext);\n  const prefixCls = getPrefixCls('app', customizePrefixCls);\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  const customClassName = classNames(hashId, prefixCls, className);\n  const [messageApi, messageContextHolder] = useMessage();\n  const [notificationApi, notificationContextHolder] = useNotification();\n  const [ModalApi, ModalContextHolder] = useModal();\n  const memoizedContextValue = React.useMemo(() => ({\n    message: messageApi,\n    notification: notificationApi,\n    modal: ModalApi\n  }), [messageApi, notificationApi, ModalApi]);\n  return wrapSSR( /*#__PURE__*/React.createElement(AppContext.Provider, {\n    value: memoizedContextValue\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: customClassName\n  }, ModalContextHolder, messageContextHolder, notificationContextHolder, children)));\n};\nif (process.env.NODE_ENV !== 'production') {\n  App.displayName = 'App';\n}\nApp.useApp = useApp;\nexport default App;"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,aAAa,QAAQ,oBAAoB;AAClD,OAAOC,QAAQ,MAAM,SAAS;AAC9B,OAAOC,UAAU,MAAM,uBAAuB;AAC9C,OAAOC,eAAe,MAAM,iCAAiC;AAC7D,OAAOC,QAAQ,MAAM,mBAAmB;AACxC,OAAOC,UAAU,MAAM,WAAW;AAClC,MAAMC,MAAM,GAAG,MAAMT,KAAK,CAACC,UAAU,CAACO,UAAU,CAAC;AACjD,MAAME,GAAG,GAAGC,KAAK,IAAI;EACnB,MAAM;IACJC,SAAS,EAAEC,kBAAkB;IAC7BC,QAAQ;IACRC;EACF,CAAC,GAAGJ,KAAK;EACT,MAAM;IACJK;EACF,CAAC,GAAGf,UAAU,CAACE,aAAa,CAAC;EAC7B,MAAMS,SAAS,GAAGI,YAAY,CAAC,KAAK,EAAEH,kBAAkB,CAAC;EACzD,M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